<?php
/**
 * Created by PhpStorm.
 * User: 王松
 * Time: 2017/12/15 09:32
 */

namespace App\Project\Search\Translate;

class AuxiliaryTranslate
{
    protected $result = [];

    public function bloodGlu0($value)
    {
        $value = json_decode($value, true);

        $unit = array_key_exists('unit', $value['glu0']) ? $value['glu0']['unit'] : 'mmol/L';

        if (isset($value['time']) && !empty($value['time'])) {
            return $value['glu0']['result_n'] . ' ' . $unit . '(' . $value['time'] . ')';
        }

        return $value['glu0']['result_n'] . ' ' . $unit;
    }

    public function bloodGlu2($value)
    {
        $value = json_decode($value, true);

        $unit = array_key_exists('unit', $value['glu0']) ? $value['glu0']['unit'] : 'mmol/L';

        if (isset($value['time']) && !empty($value['time'])) {
            return $value['glu2']['result_n'] . ' ' . $unit . '(' . $value['time'] . ')';
        }

        return $value['glu2']['result_n'] . ' ' . $unit;
    }

    public function insulinIns0($value)
    {
        return $this->resultUnit('insulin', 'ins0', $value, 'uIU/mL');
    }

    public function insulinIns120($value)
    {
        return $this->resultUnit('insulin', 'ins120', $value, 'uIU/mL');
    }

    public function pcCP0($value)
    {
        return $this->resultUnit('peptide_c', 'c-p0', $value, 'ng/mL');
    }

    public function pcCP120($value)
    {
        return $this->resultUnit('peptide_c', 'c-p120', $value, 'uIU/mL');
    }

    public function ogttGlu0($value)
    {
        return $this->ogtt($value, 'glu', 0, 'mmol/l');
    }

    public function ogttGlu1($value)
    {
        return $this->ogtt($value, 'glu', 1, 'mmol/l');
    }

    public function ogttGlu2($value)
    {
        return $this->ogtt($value, 'glu', 2, 'mmol/l');
    }

    public function ogttGlu3($value)
    {
        return $this->ogtt($value, 'glu', 3, 'mmol/l');
    }

    public function ogttGlu4($value)
    {
        return $this->ogtt($value, 'glu', 4, 'mmol/l');
    }

    public function ogttIns0($value)
    {
        return $this->ogtt($value, 'ins', 0, 'uIU/ml');
    }

    public function ogttIns1($value)
    {
        return $this->ogtt($value, 'ins', 1, 'uIU/ml');
    }

    public function ogttIns2($value)
    {
        return $this->ogtt($value, 'ins', 2, 'uIU/ml');
    }

    public function ogttIns3($value)
    {
        return $this->ogtt($value, 'ins', 3, 'uIU/ml');
    }

    public function ogttIns4($value)
    {
        return $this->ogtt($value, 'ins', 4, 'uIU/ml');
    }

    public function ogttCp0($value)
    {
        return $this->ogtt($value, 'c-p', 0, 'ng/ml');
    }

    public function ogttCp1($value)
    {
        return $this->ogtt($value, 'c-p', 1, 'ng/ml');
    }

    public function ogttCp2($value)
    {
        return $this->ogtt($value, 'c-p', 2, 'ng/ml');
    }

    public function ogttCp3($value)
    {
        return $this->ogtt($value, 'c-p', 3, 'ng/ml');
    }

    public function ogttCp4($value)
    {
        return $this->ogtt($value, 'c-p', 4, 'ng/ml');
    }

    protected function ogtt($value, $field, $number, $unit)
    {
        $value = json_decode($value, true);

        if (isset($value['time']) && !empty($value['time'])) {
            return $value[$field]['results_n'][$number] . $unit . '(' . $value['time'] . ')';
        }

        return $value[$field]['results_n'][$number] . $unit;
    }

    public function sh($value)
    {
        return $this->resultUnit('saccharify', 'hba1c', $value, '%');
    }

    public function sg($value)
    {
        return $this->resultUnit('saccharify', 'ga%', $value, '%');
    }

    public function daIaaN($value)
    {
        return $this->resultA('iaa', $value, 'IU/mL');
    }

    public function daIaaB($value)
    {
        return $this->resultA('iaa', $value, 'IU/mL');
    }

    public function daIcaN($value)
    {
        return $this->resultA('ica', $value, '');
    }

    public function daIcaB($value)
    {
        return $this->resultA('ica', $value, '');
    }

    public function daGadN($value)
    {
        return $this->resultA('gad', $value, 'IU/mL');
    }

    public function daGadB($value)
    {
        return $this->resultA('gad', $value, 'IU/mL');
    }

    public function daIa2N($value)
    {
        return $this->resultA('ia2', $value, 'IU/mL');
    }

    public function daIa2B($value)
    {
        return $this->resultA('ia2', $value, 'IU/mL');
    }

    public function acr($value)
    {
        return $this->resultUnit('acr', 'acr', $value, 'mg/mmolCr');
    }

    public function uaer8HUrine($value)
    {
        return $this->resultUnit('uaer', '8hu-v', $value, 'ml');
    }

    public function uaerUma1b($value)
    {
        return $this->resultUnit('uaer', 'uma1b', $value, 'mg/L');
    }

    public function uaerUae($value)
    {

        return $this->resultUnit('uaer', 'uae', $value, 'μg/min');
    }

    public function uaerNl($value)
    {

        return $this->resultUnit('uaer', 'nl', $value, 'ml');
    }

    public function uaerMa($value)
    {

        return $this->resultUnit('uaer', 'ma', $value, 'mg/L');
    }

    public function uaerUcsfp($value)
    {

        return $this->resultUnit('uaer', 'ucsfp', $value, 'g/L');
    }

    public function uaer24Hma($value)
    {

        return $this->resultUnit('uaer', '24hma', $value, 'mg/24h');
    }

    public function uaer24Hutp($value)
    {

        return $this->resultUnit('uaer', '24hutp', $value, 'mg/24h');
    }

    public function urineSg($value)
    {
        return $this->resultUnit('urine_routine', 'sg', $value, '');
    }

    public function urinePh($value)
    {
        return $this->resultUnit('urine_routine', 'ph', $value, '');
    }

    public function urineWbcN($value)
    {
        return $this->resultA('wbc', $value, 'Cell/ul');
    }

    public function urineWbcB($value)
    {
        return $this->resultA('wbc', $value, 'Cell/ul');
    }

    public function urineProN($value)
    {
        return $this->resultA('pro', $value, 'g/L');
    }

    public function urineProB($value)
    {
        return $this->resultA('pro', $value, 'g/L');
    }

    public function urineGluN($value)
    {
        return $this->resultA('glu', $value, 'mmol/L');
    }

    public function urineGluB($value)
    {
        return $this->resultA('glu', $value, 'mmol/L');
    }

    public function urineKetN($value)
    {
        return $this->resultA('ket', $value, 'mmol/L');
    }

    public function urineKetB($value)
    {
        return $this->resultA('ket', $value, 'mmol/L');
    }

    public function urineUbg($value)
    {
        return $this->resultUnit('urine_routine', 'ubg', $value, 'umol/L');
    }

    public function urineBilN($value)
    {
        return $this->resultA('bil', $value, 'umol/L');
    }

    public function urineBilB($value)
    {
        return $this->resultA('bil', $value, 'umol/L');
    }

    public function urineBidN($value)
    {
        return $this->resultA('bld', $value, 'Cell/ul');
    }

    public function urineBidB($value)
    {
        return $this->resultA('bld', $value, 'Cell/ul');
    }

    public function urineLd($value)
    {
        return $this->resultUnit('urine_routine', 'ld', $value, '');
    }

    public function beAlt($value)
    {
        return $this->resultUnit('biochemical_examination', 'alt', $value, 'U/L');
    }

    public function beTp($value)
    {
        return $this->resultUnit('biochemical_examination', 'tp', $value, 'g/L');
    }

    public function beAlb($value)
    {
        return $this->resultUnit('biochemical_examination', 'alb', $value, 'g/L');
    }

    public function beAg($value)
    {
        return $this->resultUnit('biochemical_examination', 'a/g', $value, '');
    }

    public function beTbil($value)
    {
        return $this->resultUnit('biochemical_examination', 'tbil', $value, 'μmol/L');
    }

    public function beDbil($value)
    {
        return $this->resultUnit('biochemical_examination', 'dbil', $value, 'μmol/L');
    }

    public function beGgt($value)
    {
        return $this->resultUnit('biochemical_examination', 'ggt', $value, 'U/L');
    }

    public function beAlp($value)
    {
        return $this->resultUnit('biochemical_examination', 'alp', $value, 'U/L');
    }

    public function beAst($value)
    {
        return $this->resultUnit('biochemical_examination', 'ast', $value, 'U/L');
    }

    public function beTba($value)
    {
        return $this->resultUnit('biochemical_examination', 'tba', $value, 'μmol/L');
    }

    public function beLd($value)
    {
        return $this->resultUnit('biochemical_examination', 'ld', $value, 'U/L');
    }

    public function beChe($value)
    {
        return $this->resultUnit('biochemical_examination', 'che', $value, 'KU/L');
    }

    public function beK($value)
    {
        return $this->resultUnit('biochemical_examination', 'k', $value, 'mmol/L');
    }

    public function beNa($value)
    {
        return $this->resultUnit('biochemical_examination', 'na', $value, 'mmol/L');
    }

    public function beCl($value)
    {
        return $this->resultUnit('biochemical_examination', 'cl', $value, 'mmol/L');
    }

    public function beTco2($value)
    {
        return $this->resultUnit('biochemical_examination', 'tco2', $value, 'mmol/L');
    }

    public function beCa($value)
    {
        return $this->resultUnit('biochemical_examination', 'ca', $value, 'mmol/L');
    }

    public function beCre($value)
    {
        return $this->resultUnit('biochemical_examination', 'cr(e)', $value, 'μmol/L');
    }

    public function beUrea($value)
    {
        return $this->resultUnit('biochemical_examination', 'urea', $value, 'mmol/L');
    }

    public function beGlu($value)
    {
        return $this->resultUnit('biochemical_examination', 'glu', $value, 'mmol/L');
    }

    public function beUa($value)
    {
        return $this->resultUnit('biochemical_examination', 'ua', $value, 'umol/L');
    }

    public function beP($value)
    {
        return $this->resultUnit('biochemical_examination', 'p', $value, 'mmol/L');
    }

    public function beTc($value)
    {
        return $this->resultUnit('biochemical_examination', 'tc', $value, 'mmol/L');
    }

    public function beTg($value)
    {
        return $this->resultUnit('biochemical_examination', 'tg', $value, 'mmol/L');
    }

    public function beHdlc($value)
    {
        return $this->resultUnit('biochemical_examination', 'hdl-c', $value, 'mmol/L');
    }

    public function beldlc($value)
    {
        return $this->resultUnit('biochemical_examination', 'ldl-c', $value, 'mmol/L');
    }

    public function beApoa1($value)
    {
        return $this->resultUnit('biochemical_examination', 'apoa1', $value, 'g/L');
    }

    public function beApob($value)
    {
        return $this->resultUnit('biochemical_examination', 'apob', $value, 'g/L');
    }

    public function beLpa($value)
    {
        return $this->resultUnit('biochemical_examination', 'lp(a)', $value, 'mg/L');
    }

    public function beHscrp($value)
    {
        return $this->resultUnit('biochemical_examination', 'hscrp', $value, 'mg/L');
    }

    public function beFfa($value)
    {
        return $this->resultUnit('biochemical_examination', 'ffa', $value, 'umol/L');
    }

    public function bePa($value)
    {
        return $this->resultUnit('biochemical_examination', 'pa', $value, 'mg/L');
    }

    public function beCk($value)
    {
        return $this->resultUnit('biochemical_examination', 'ck', $value, 'U/L');
    }

    public function beCkmb($value)
    {
        return $this->resultUnit('biochemical_examination', 'ckmb', $value, 'U/L');
    }

    public function lfAlt($value)
    {
        return $this->resultUnit('liver_function', 'alt', $value, 'U/L');
    }

    public function lfAlb($value)
    {
        return $this->resultUnit('liver_function', 'alb', $value, 'g/L');
    }

    public function lfTbil($value)
    {
        return $this->resultUnit('liver_function', 'tbil', $value, 'μmol/L');
    }

    public function lfDbil($value)
    {
        return $this->resultUnit('liver_function', 'dbil', $value, 'μmol/L');
    }

    public function lfAlp($value)
    {
        return $this->resultUnit('liver_function', 'alp', $value, 'U/L');
    }

    public function lfAst($value)
    {
        return $this->resultUnit('liver_function', 'ast', $value, 'U/L');
    }

    public function lfLd($value)
    {
        return $this->resultUnit('liver_function', 'ld', $value, 'U/L');
    }

    public function kidneyK($value)
    {
        return $this->resultUnit('kidney', 'k', $value, 'mmol/L');
    }

    public function kidneyNa($value)
    {
        return $this->resultUnit('kidney', 'na', $value, 'mmol/L');
    }

    public function kidneyCl($value)
    {
        return $this->resultUnit('kidney', 'cl', $value, 'mmol/L');
    }

    public function kidneyTco2($value)
    {
        return $this->resultUnit('kidney', 'tco2', $value, 'mmol/L');
    }

    public function kidneyCa($value)
    {
        return $this->resultUnit('kidney', 'ca', $value, 'mmol/L');
    }

    public function kidneyP($value)
    {
        return $this->resultUnit('kidney', 'p', $value, 'mmol/L');
    }

    public function kidneyCre($value)
    {
        return $this->resultUnit('kidney', 'cr(e)', $value, 'μmol/L');
    }

    public function kidneyUrea($value)
    {
        return $this->resultUnit('kidney', 'urea', $value, 'mmol/L');
    }

    public function kidneyGlu($value)
    {
        return $this->resultUnit('kidney', 'glu', $value, 'mmol/L');
    }

    public function kidneyUa($value)
    {
        return $this->resultUnit('kidney', 'ua', $value, 'umol/L');
    }

    public function kidneyEgfr($value)
    {
        return $this->resultUnit('kidney', 'egfr', $value, 'g/d');
    }

    public function electrolyteK($value)
    {
        return $this->resultUnit('electrolyte', 'k', $value, 'mmol/L');
    }

    public function electrolyteNa($value)
    {
        return $this->resultUnit('electrolyte', 'na', $value, 'mmol/L');
    }

    public function electrolyteCl($value)
    {
        return $this->resultUnit('electrolyte', 'cl', $value, 'mmol/L');
    }

    public function electrolyteCa($value)
    {
        return $this->resultUnit('electrolyte', 'ca', $value, 'mmol/L');
    }

    public function electrolyteTco2($value)
    {
        return $this->resultUnit('electrolyte', 'tco2', $value, 'mmol/L');
    }

    public function tgTc($value)
    {
        return $this->resultUnit('tg_chohdlldl', 'tc', $value, 'mmol/L');
    }

    public function tgTg($value)
    {
        return $this->resultUnit('tg_chohdlldl', 'tg', $value, 'mmol/L');
    }

    public function tgHdlc($value)
    {
        return $this->resultUnit('tg_chohdlldl', 'hdl-c', $value, 'mmol/L');
    }

    public function tgLdlc($value)
    {
        return $this->resultUnit('tg_chohdlldl', 'ldl-c', $value, 'mmol/L');
    }

    public function bpAmy($value)
    {
        return $this->resultUnit('bt_paba', 'amy', $value, 'mmol/L');
    }

    public function bpLip($value)
    {
        return $this->resultUnit('bt_paba', 'lip', $value, 'mmol/L');
    }

    public function tfoFt3($value)
    {
        return $this->resultUnit('thyroid_function_one', 'ft3', $value, 'pg/ml');
    }

    public function tfoFt4($value)
    {
        return $this->resultUnit('thyroid_function_one', 'ft4', $value, 'ng/dl');
    }

    public function tfoTsh3($value)
    {
        return $this->resultUnit('thyroid_function_one', 'tsh3', $value, 'ng/ml');
    }

    public function tftFt3($value)
    {
        return $this->resultUnit('thyroid_function_two', 'ft3', $value, 'pg/ml');
    }

    public function tftFt4($value)
    {
        return $this->resultUnit('thyroid_function_two', 'ft4', $value, 'ng/dl');
    }

    public function tftT3($value)
    {
        return $this->resultUnit('thyroid_function_two', 't3', $value, 'ng/ml');
    }

    public function tftT4($value)
    {
        return $this->resultUnit('thyroid_function_two', 't4', $value, 'ug/dL');
    }

    public function tftTsh3($value)
    {
        return $this->resultUnit('thyroid_function_two', 'tsh3', $value, 'ng/ml');
    }

    public function tfthAtg($value)
    {
        return $this->resultUnit('thyroid_function_three', 'a-tg', $value, 'IU/ml');
    }

    public function tfthAtpo($value)
    {
        return $this->resultUnit('thyroid_function_three', 'a-tpo', $value, 'IU/ml');
    }

    public function tfthAtshr($value)
    {
        return $this->resultUnit('thyroid_function_three', 'atshr', $value, 'IU/L');
    }

    public function paActh0($value)
    {
        return $this->resultUnit('plasma_acth', 'acth(0am)', $value, 'pg/ml');
    }

    public function paActh8($value)
    {
        return $this->resultUnit('plasma_acth', 'acth(8am)', $value, 'pg/ml');
    }

    public function paActh4p($value)
    {
        return $this->resultUnit('plasma_acth', 'acth(4pm)', $value, 'pg/ml');
    }

    public function bcF0($value)
    {
        return $this->resultUnit('blood_cortisol', 'f(0am)', $value, 'ug/dl');
    }

    public function bcF8($value)
    {
        return $this->resultUnit('blood_cortisol', 'f(8am)', $value, 'ug/dl');
    }

    public function bcF4p($value)
    {
        return $this->resultUnit('blood_cortisol', 'f(4pm)', $value, 'ug/dl');
    }

    public function bcF($value)
    {
        return $this->resultUnit('blood_cortisol', 'f', $value, 'ug/dl');
    }

    public function eeLh($value)
    {
        return $this->resultUnit('endocrine_examination', 'lh', $value, 'IU/L');
    }

    public function eeFsh($value)
    {
        return $this->resultUnit('endocrine_examination', 'fsh', $value, 'IU/L');
    }

    public function eeE2($value)
    {
        return $this->resultUnit('endocrine_examination', 'e2', $value, 'ug/ml');
    }

    public function eeP($value)
    {
        return $this->resultUnit('endocrine_examination', 'p', $value, 'ng/ml');
    }

    public function eeT($value)
    {
        return $this->resultUnit('endocrine_examination', 't', $value, 'ng/ml');
    }

    public function eePrl($value)
    {
        return $this->resultUnit('endocrine_examination', 'prl', $value, 'ng/ml');
    }

    public function ghGh($value)
    {
        return $this->resultUnit('growth_hormone', 'gh', $value, 'ng/ml');
    }

    public function igfIgf1($value)
    {
        return $this->resultUnit('insulin_growth_factor', 'igf1', $value, 'ng/ml');
    }

    public function brWbc($value)
    {
        return $this->resultUnit('blood_routine', 'wbc', $value, '');
    }

    public function brLy($value)
    {
        return $this->resultUnit('blood_routine', 'ly%', $value, '%');
    }

    public function brMono($value)
    {
        return $this->resultUnit('blood_routine', 'mono%', $value, '%');
    }

    public function brNeut($value)
    {
        return $this->resultUnit('blood_routine', 'neut%', $value, '%');
    }

    public function brEos($value)
    {
        return $this->resultUnit('blood_routine', 'eos%', $value, '%');
    }

    public function brBaso($value)
    {
        return $this->resultUnit('blood_routine', 'baso%', $value, '%'); // 10
    }

    public function brLuc($value)
    {
        return $this->resultUnit('blood_routine', 'luc%', $value, 'mmol/L');
    }

    public function brLya($value)
    {
        return $this->resultUnit('blood_routine', 'ly#', $value, 'mmol/L');
    }

    public function brMonoa($value)
    {
        return $this->resultUnit('blood_routine', 'mono#', $value, 'mmol/L');
    }

    public function brNeuta($value)
    {
        return $this->resultUnit('blood_routine', 'neut#', $value, 'mmol/L');
    }

    public function brEosa($value)
    {
        return $this->resultUnit('blood_routine', 'eos#', $value, 'mmol/L');
    }

    public function brBasoa($value)
    {
        return $this->resultUnit('blood_routine', 'baso#', $value, 'mmol/L');
    }

    public function brRbc($value)
    {
        return $this->resultUnit('blood_routine', 'rbc', $value, 'mmol/L');
    }

    public function brHgb($value)
    {
        return $this->resultUnit('blood_routine', 'hgb', $value, 'mmol/L');
    }

    public function brHct($value)
    {
        return $this->resultUnit('blood_routine', 'hct', $value, 'mmol/L');
    }

    public function brMcv($value)
    {
        return $this->resultUnit('blood_routine', 'mcv', $value, 'mmol/L');
    }

    public function brMchc($value)
    {
        return $this->resultUnit('blood_routine', 'mchc', $value, 'mmol/L');
    }

    public function brMch($value)
    {
        return $this->resultUnit('blood_routine', 'mch', $value, 'mmol/L');
    }

    public function brChcm($value)
    {
        return $this->resultUnit('blood_routine', 'chcm', $value, 'mmol/L');
    }

    public function brCh($value)
    {
        return $this->resultUnit('blood_routine', 'ch', $value, 'mmol/L');
    }

    public function brRdw($value)
    {
        return $this->resultUnit('blood_routine', 'rdw', $value, 'mmol/L');
    }

    public function brHdw($value)
    {
        return $this->resultUnit('blood_routine', 'hdw', $value, 'mmol/L');
    }

    public function brPlt($value)
    {
        return $this->resultUnit('blood_routine', 'plt', $value, 'mmol/L');
    }

    public function brPct($value)
    {
        return $this->resultUnit('blood_routine', 'pct', $value, 'mmol/L');
    }

    public function brPdw($value)
    {
        return $this->resultUnit('blood_routine', 'pdw', $value, 'mmol/L');
    }

    public function brMpv($value)
    {
        return $this->resultUnit('blood_routine', 'mpv', $value, 'mmol/L');
    }

    public function bgaPh($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'ph', $value, '');
    }

    public function bgaLac($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'lac', $value, 'mmol/L');
    }

    public function bgaHco3($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'hco3_', $value, 'mmol/L');
    }

    public function bgaPo2($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'po2', $value, 'mmHg');
    }

    public function bgaPco2($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'pco2', $value, 'mmHg');
    }

    public function bgaSo2($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'so2', $value, '%');
    }

    public function bgaThb($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'thb', $value, 'g/dL');
    }

    public function bgaO2hb($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'o2hb', $value, '%');
    }

    public function bgaCohb($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'cohb', $value, '%');
    }

    public function bgaHhb($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'hhb', $value, '%');
    }

    public function bgaMethb($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'methb', $value, '%');
    }

    public function bgaBe($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'be', $value, 'mmol/L');
    }

    public function bgaBeecf($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'beecf', $value, 'mmol/L');
    }

    public function bgaBb($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'bb', $value, 'mmol/L');
    }

    public function bgaChco3($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'chco3', $value, 'mmol/L');
    }

    public function bgaChco3st($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'chco3st', $value, 'mmol/L');
    }

    public function bgaCtco2b($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'ctco2b', $value, 'mmol/L');
    }

    public function bgaAado2($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'aado2', $value, 'mmol/L');
    }

    public function bgaH($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'h', $value, 'mmol/L');
    }

    public function bgaPhst($value)
    {
        return $this->resultUnit('blood_gas_analysis', 'phst', $value, '');
    }

    public function bcoEsr($value)
    {
        return $this->resultUnit('blood_coagulation_two', 'esr', $value, 'mm/h');
    }

    public function bctPt($value)
    {
        return $this->resultUnit('blood_coagulation_two', 'pt', $value, 's');
    }

    public function bctPtp($value)
    {
        return $this->resultUnit('blood_coagulation_two', 'pt%', $value, '');
    }

    public function bctInr($value)
    {
        return $this->resultUnit('blood_coagulation_two', 'inr', $value, '');
    }

    public function bctFbg($value)
    {
        return $this->resultUnit('blood_coagulation_two', 'fbg', $value, 'g/L');
    }

    public function bctAptt($value)
    {
        return $this->resultUnit('blood_coagulation_two', 'aptt', $value, 's');
    }

    public function bctApttr($value)
    {
        return $this->resultUnit('blood_coagulation_two', 'aptt-r', $value, '');
    }

    public function bctTt($value)
    {
        return $this->resultUnit('blood_coagulation_two', 'tt', $value, 's');
    }

    public function bctDimer($value)
    {
        return $this->resultUnit('blood_coagulation_two', 'd-dimer', $value, 'mg/L FEU');
    }

    public function dsHufcd1($value)
    {
        return $this->resultUnit('dexamethasone_suppression', '24hufc(d1)', $value, '');
    }

    public function dsHufcd2($value)
    {
        return $this->resultUnit('dexamethasone_suppression', '24hufc(d2)', $value, '');
    }

    public function dsHufcd4($value)
    {
        return $this->resultUnit('dexamethasone_suppression', '24hufc(d4)', $value, '');
    }

    public function dsHufcd6($value)
    {
        return $this->resultUnit('dexamethasone_suppression', '24hufc(d6)', $value, '');
    }

    public function hy25oho2($value)
    {
        return $this->resultUnit('hydroxyvitamin', '25oho2', $value, 'ng/ml');
    }

    public function hyT25ohd($value)
    {
        return $this->resultUnit('hydroxyvitamin', 't-25ohd', $value, 'ng/ml');
    }

    public function hy25ohd3($value)
    {
        return $this->resultUnit('hydroxyvitamin', '25ohd3', $value, 'ng/ml');
    }

    public function hyVitdt($value)
    {
        return $this->resultUnit('hydroxyvitamin', 'vitdt', $value, 'ng/ml');
    }

    public function hyOsteoc($value)
    {
        return $this->resultUnit('hydroxyvitamin', 'osteoc', $value, 'ng/ml');
    }

    public function hyIpth($value)
    {
        return $this->resultUnit('hydroxyvitamin', 'ipth', $value, 'pg/ml');
    }

    public function hyCt($value)
    {
        return $this->resultUnit('hydroxyvitamin', 'ct', $value, 'pg/ml');
    }

    public function hyCrosslaps($value)
    {
        return $this->resultUnit('hydroxyvitamin', 'crosslaps', $value, 'ng/ml');
    }

    public function hyTp1np($value)
    {
        return $this->resultUnit('hydroxyvitamin', 'tp1np', $value, 'ng/ml');
    }

    public function uu24huv($value)
    {
        return $this->resultUnit('uca_up', '24hu-v', $value, 'ml');
    }

    public function uuUca($value)
    {
        return $this->resultUnit('uca_up', 'u-ca', $value, 'mmol/L');
    }

    public function uuUp($value)
    {
        return $this->resultUnit('uca_up', 'u-p', $value, 'mmol/L');
    }

    public function uu24huca($value)
    {
        return $this->resultUnit('uca_up', '24huca', $value, 'mmol/24h');
    }

    public function uu24hup($value)
    {
        return $this->resultUnit('uca_up', '24hup', $value, 'mmol/24h');
    }

    public function cdβctx($value)
    {
        return $this->resultUnit('collagen_degradation', 'β-ctx', $value, 'g');
    }

    public function resultUnit($field, $key, $value, $unit)
    {
        $value = json_decode($value, true);

        if (isset($value['time']) && !empty($value['time'])) {
            return $value[$key]['result_n'] . $unit . '(' . $value['time'] . ')';
        }

        return $value[$key]['result_n'] . $unit;
    }

    protected function resultA($key, $value, $unit)
    {
        $value = json_decode($value, true);

        $str = '';
        $str .= $value[$key]['result_a']['result_b'] ? '阳性' : '阴性';

        if (isset($value[$key]['result_a']['result_n']) && !empty($value[$key]['result_a']['result_n'])) {
            $str .= $value[$key]['result_a']['result_n'] . $unit;
        }

        if (isset($value['time']) && !empty($value['time'])) {
            $str .= '(' . $value['time'] . ')';
        }

        return $str;
    }

    public function __call($method, $value)
    {
        return $value;
    }
}